<%@page  import="merlin.beans.*,merlin.dao.*,merlin.managers.*,merlin.servlets.*,merlin.utils.*" %>

<%
	// sanity check
	if(session.getAttribute("username") == null){
		response.sendRedirect("login.jsp");
		return;
	}
%>

<HTML>
<HEAD>
	<meta HTTP-EQUIV="Cache-Control"  CONTENT="no-cache" />
	<meta HTTP-EQUIV="Expires"        CONTENT="1 Jan 1980" />
	<meta HTTP-EQUIV="MaxAge"         CONTENT="0" />
	<meta HTTP-EQUIV="Pragma-Control" CONTENT="no-cache" />

	<SCRIPT>
		function displayMessage(message){
			message = "<SPAN style='color:GREEN; font: 12px arial, verdana, sans-serif ;font-weight:bold;'>" + message + "</SPAN>"
			var divMessage ;
			if(document.all){
				// IE 4+
				divMessage 	= document.all("divMessage");
			}else if(document.getElementById){
				// Mozilla/NS 6+/Firefox
				divMessage 	= document.getElementById("divMessage");
			}else if(document.layers){
				divMessage 	= document.layers["divMessage"];
			}
			divMessage.innerHTML = message;
		}

		function displayError(errMessage){
			errMessage = "<SPAN style='color:red; font: 12px arial, verdana, sans-serif ;font-weight:bold;'>" + errMessage + "</SPAN>"
			var divMessage ;
			if(document.all){
				// IE 4+
				divMessage 	= document.all("divMessage");
			}else if(document.getElementById){
				// Mozilla/NS 6+/Firefox
				divMessage 	= document.getElementById("divMessage");
			}else if(document.layers){
				divMessage 	= document.layers["divMessage"];
			}
			divMessage.innerHTML = errMessage;
		}

		function clearMessage(){
			var divMessage ;
			if(document.all){
				// IE 4+
				divMessage 	= document.all("divMessage");
			}else if(document.getElementById){
				// Mozilla/NS 6+/Firefox
				divMessage 	= document.getElementById("divMessage");
			}else if(document.layers){
				divMessage 	= document.layers["divMessage"];
			}
			divMessage.innerHTML = "";
		}
	</SCRIPT>
</HEAD>
<BODY>
	<div align="center">
		<img src="mr_images/headerMain.gif" align="center"/>
	</div>
	<DIV ALIGN="CENTER" ID="divMessage">
	</DIV>
</BODY>
</HTML>